/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Ejercicio6_6_2;

/**
 *
 * @author alumno
 */
public class Clock {

    public int currentTime;

    public void displayPartOfDay() {

        if (currentTime >= 0 && currentTime <= 600 ) {

            System.out.println("Madrugada: " + currentTime);

        } else if (currentTime > 600 && currentTime <= 1300 ) {

            System.out.println("Mañana: " + currentTime);

        } else if (currentTime > 1300 && currentTime <= 1600 ) {

            System.out.println("Siesta: " + currentTime);

       }  else if (currentTime > 1600 && currentTime <= 2000 ) {

           System.out.println("Tarde: " + currentTime);

       }  else if (currentTime > 2000 && currentTime <= 2359 ) {

           System.out.println("Noche: " + currentTime);

       }  else {
            System.out.println("Error: " + currentTime);
       }

    }
 }

